package com.osscode.framework.core.util;

import org.apache.log4j.Logger;

public final class AppLog {
	
	private  static final String TAG="Application_OssCode_LOG";
	
    public static void debug(String tag,String message)
    {
    	Logger.getLogger(tag==null?TAG:tag).debug(message);
    }
    
    public static void info(String tag,String message)
    {
    	Logger.getLogger(tag==null?TAG:tag).info(message);
    }
    
    
    public static void warn(String tag,String message)
    {
    	Logger.getLogger(tag==null?TAG:tag).warn(message);
    }
    
    public static void error(String tag,String message)
    {
    	Logger.getLogger(tag==null?TAG:tag).error(message);
    }
    
    
    public static void fatal(String tag,String message)
    {
    	Logger.getLogger(tag==null?TAG:tag).fatal(message);
    }
    
    
    
    public static void debug(String message)
    {
    	AppLog.debug(null, message);
    }
    
    public static void info(String message)
    {
    	AppLog.info(null,message);
    }
    
    
    public static void warn(String message)
    {
        AppLog.warn(null,message);
    }
    
    public static void error(String message)
    {
    	AppLog.error(null, message);
    }
    
    
    public static void fatal(String message)
    {
    	AppLog.fatal(null, message);
    }
}
